import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)


// 网络请求框架
import axios from 'axios'

// 让ajax携带cookie
// axios.defaults.withCredentials = true
// 这样设置就可以在组件内用 this.$http 使用axios了
Vue.prototype.$http = axios
// 初始化基础地址
axios.defaults.baseURL = 'http://localhost:8090/'

import cookie from 'vue-cookie'
Vue.prototype.$cookie = cookie

import jwt from 'jsonwebtoken'
Vue.prototype.$jwt = jwt

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
